package com.souku.finance.application.widget.titlebar;

import android.content.Context;
import android.util.AttributeSet;
import android.view.View;
import android.widget.RelativeLayout;

/**
 * Created by Administrator on 2016/8/6.
 */

public abstract class BaseTitleBar extends RelativeLayout {

    protected OnClickTitleListener onClickTitleListener;

    public BaseTitleBar(Context context, AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
    }

    public BaseTitleBar(Context context, AttributeSet attrs) {
        super(context, attrs);
    }

    public BaseTitleBar(Context context) {
        super(context);
    }

    public void setOnClickTitleListener(OnClickTitleListener onClickTitleListener) {
        this.onClickTitleListener = onClickTitleListener;
    }

    public interface OnClickTitleListener {
        void onClickTitleLeftView(View v);

        void onClickTitleRightView(View v);

        void onClickTitleCentreView(View v);
    }

    /**
     * 显示标题栏
     */
    public abstract void showTitleBar();

    /**
     * 隐藏标题栏
     */
    public abstract void hideTitleBar();

}
